<template>
  <div>
    <div class="title">订单列表</div>
    <div class="table">
      <el-table
        v-loading="isloading"
        element-loading-text="拼命加载中"
        header-row-class-name="table-header"
        ref="tableSelect"
        :data="tableData"
        style="width: 100%">
        <el-table-column
          type="selection"
          class-name="table-checkbox"
          width="50">
        </el-table-column>
        <el-table-column
          prop="id"
          label="ID"
          width="50">
        </el-table-column>
        <el-table-column
          prop="true_name"
          label="姓名"
          width="150">
        </el-table-column>
        <el-table-column
          prop="email"
          label="身份证号"
          width="150">
        </el-table-column>
        <el-table-column
          prop="mobile"
          label="电话"
          width="100">
        </el-table-column>
        <el-table-column
          prop="mobile"
          label="银行卡号"
          width="150">
        </el-table-column>
        <el-table-column
          prop="last_login_time"
          label="最后登录时间"
          width="150">
        </el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button
              size="mini"
              @click="edit(scope)">编辑</el-button>
            <del-picker
              :isdisabled="scope.row.id == '1'"
              v-on:remove="del(scope)"
              :fun="fun"
              :scope="scope">
            </del-picker>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="page">
      <div class="page-total">共
        <span class="page-total-num">{{pageConfig.total}}</span> 条
      </div>
      <div class="pages" v-if="pageConfig.total > 0">
        <el-pagination
          @size-change="setPageSize"
          background
          @current-change="toPage"
          :current-page="pageConfig.newPage"
          :page-sizes="[10, 20, 30, 40]"
          :page-size="pageConfig.pageSize"
          layout="sizes, prev, pager, next, jumper"
          :total="pageConfig.total">
        </el-pagination>
      </div>
      <div class="clearfix"></div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      dialogVisible: false,
      tableSelect: [],
      isStatusLoading: '',
      isloading: false,
      isBtnLoading: false,
      pageConfig: {
        newPage: 1,
        total: 0,
        pageSize: 10
      },
      title: '',
      tableData: [],
      accesss: [],
      formData: {
        name: '',
        id: '',
        access: [],
        password: '',
        email: '',
        true_name: ''
      },
      rules: {
        name: [
          { required: true, message: '登录名不能为空', trigger: 'blur' }
        ],
        true_name: [
          { required: true, message: '真实姓名不能为空', trigger: 'blur' }
        ],
        password: [
          { required: true, message: '密码不能为空', trigger: 'blur' },
          { min: 6, message: '长度大于6', trigger: 'blur' }
        ],
        type: [
          { required: true, message: '分类不能为空', trigger: 'blur' }
        ],
        email: [
          { required: true, message: '邮箱不能为空', trigger: 'blur' },
          { type: 'email', message: '邮箱格式不正确', trigger: 'blur' }
        ]
      },
      getUserParmas: {
        type: '0',
        name: '',
        page: 1,
        pageLength: 10
      },
      passwordph: ''
    }
  },
  methods: {
  }
}
</script>

<style scoped>
  .title{
    font-size: 22px;
    font-weight: 600;
  }
  .page{
    overflow: hidden;
    height: 35px;
    padding: 10px 20px;
  }
  .page-total{
    float: left;
    line-height: 35px;
  }
  .pages{
    float: right;
    line-height: 35px;
  }
  .clearfix{
    clear: both;
  }
</style>
